package com.example.ccj.b.c.ui.install;

import android.graphics.Color;

/**
 * 选择颜色设置界面
 */
public class InstallSelectColor extends InstallItem{
    public InstallSelectColor(String installName){
        this.installName = installName;
    }

    public InstallSelectColor(String installName, int defColor){
        this.installName = installName;
        this.defColor = defColor;
    }

    public InstallSelectColor(String installName, int defColor,  SelectColorListener select){
        this.installName = installName;
        this.defColor = defColor;
        this.select = select;
    }

    private SelectColorListener select;//点击选择回调
    private int defColor = Color.GREEN;//默认颜色

    @Override
    public int getType() {
        return TYPE_COLOR;
    }


    public SelectColorListener getSelect() {
        return select;
    }

    public void setSelect(SelectColorListener select) {
        this.select = select;
    }

    public int getDefColor() {
        return defColor;
    }

    public void setDefColor(int defColor) {
        this.defColor = defColor;
    }
}
